<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| CVS Version: 1.00
| Author: ShadowMage
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION_SECURE")) { die("Access Denied"); }

include INFUSIONS."server_status_panel/server_status_db.php";

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."server_status_panel/locale/".$settings['locale'].".php")) {
    // Load the locale file matching the current site locale setting.
  include INFUSIONS."server_status_panel/locale/".$settings['locale'].".php";
} else {
  // Load the infusion's default locale file.
  include INFUSIONS."server_status_panel/locale/English.php";
}

// Infusion general information
$inf_title = $locale['svi_title'];
$inf_description = $locale['svi_desc'];
$inf_version = "2.0";
$inf_developer = "ShadowMage";
$inf_email = "futilefreedom@wikiop.in";
$inf_weburl = "http://pf.wikiop.in/";

$inf_folder = "server_status_panel"; // The folder in which the infusion resides.

// Delete any items not required below.
$inf_droptable[1] = DB_SERVERS_TABLE;

$inf_newtable[1] = DB_SERVERS_TABLE." (
`server_id` INT( 11 ) NOT NULL auto_increment,
`server_name` VARCHAR( 255 ) NOT NULL,
`server_description` TEXT NOT NULL,
`use_panel` INT( 1 ) NOT NULL default '0',
PRIMARY KEY(`server_id`)
) TYPE=MyISAM;";

$inf_droptable[2] = DB_SERVICES_TABLE;

$inf_newtable[2] = DB_SERVICES_TABLE." (
`service_id` INT( 11 ) NOT NULL auto_increment,
`server_id` INT( 11 ) NOT NULL,
`service_port` INT ( 5 ) NOT NULL,
`service_name` VARCHAR( 255 ) NOT NULL,
`service_description` TEXT NOT NULL,
`service_use_panel` INT( 1 ) NOT NULL default '0',
PRIMARY KEY(`service_id`)
) TYPE=MyISAM;";

$inf_adminpanel[1] = array(
  "title" => $locale['svi_admin1'],
  "image" => "servers.png",
  "panel" => "servers_admin.php",
  "rights" => "SVI"
);
?>
